package com.huike.report.mapper;

import java.util.List;

import com.huike.report.domain.vo.*;
import org.apache.ibatis.annotations.Param;

/**
 * 首页统计分析的Mapper
 * @author Administrator
 *
 */
public interface ReportMapper {
	/**=========================================基本数据========================================*/
	/**
	 * 获取线索数量
	 * @param beginCreateTime	开始时间
	 * @param endCreateTime		结束时间
	 * @param username			用户名
	 * @return
	 */
	Integer getCluesNum(@Param("startTime") String beginCreateTime,
						@Param("endTime") String endCreateTime,
						@Param("username") String username);

	/**
	 * 获取商机数量
	 * @param beginCreateTime	开始时间
	 * @param endCreateTime		结束时间
	 * @param username			用户名
	 * @return
	 */
	Integer getBusinessNum(@Param("startTime") String beginCreateTime,
						   @Param("endTime") String endCreateTime,
						   @Param("username") String username);

	/**
	 * 获取合同数量
	 * @param beginCreateTime	开始时间
	 * @param endCreateTime		结束时间
	 * @param username			用户名
	 * @return
	 */
	Integer getContractNum(@Param("startTime") String beginCreateTime,
						   @Param("endTime") String endCreateTime,
						   @Param("username") String username);

	/**
	 * 获取合同金额
	 * @param beginCreateTime	开始时间
	 * @param endCreateTime		结束时间
	 * @param username			用户名
	 * @return
	 */
	Double getSalesAmount(@Param("startTime") String beginCreateTime,
						  @Param("endTime") String endCreateTime,
						  @Param("username") String username);

	/**=========================================今日简报========================================*/

	Integer getTodayCluesNum(@Param("date") String Date,@Param("username")String username);


	Integer getTodayBusinessNum(@Param("date")String Date,@Param("username")String username);



	Integer getTodayContractNum(@Param("date")String Date,@Param("username")String username);


	Double getTodaySalesAmount(@Param("date")String Date, @Param("username") String username);


	/**=========================================待办========================================*/
	Integer getTodoCluesNum(@Param("startTime") String beginCreateTime,
							@Param("endTime") String endCreateTime,
							@Param("username") String username);


	Integer getTodoBusinessNum( @Param("startTime") String beginCreateTime,
								@Param("endTime") String endCreateTime,
								@Param("username") String username);



	Integer getTodofollowedCluesNum(@Param("startTime") String beginCreateTime,
									@Param("endTime") String endCreateTime,
									@Param("username") String username);


	Integer getTodofollowedBusinessNum(@Param("startTime") String beginCreateTime,
									   @Param("endTime") String endCreateTime,
									   @Param("username") String username);
//饼图
	List<SBSVO> subjectStatisticsList(@Param("startTime") String beginCreateTime,
									  @Param("endTime") String endCreateTime);

	List<LineChartVO> cluesss (@Param("startTime") String beginCreateTime,
							  @Param("endTime") String endCreateTime);
//漏斗
	//List<VulnerabilityMapVo> getVulnerability (@Param("startTime") String beginCreateTime,@Param("endTime") String endCreateTime);

	Integer getContractNums(@Param("startTime") String beginCreateTime,
							@Param("endTime")String endCreateTime,
							@Param("username") String username);

	Integer getEffCluesNums(@Param("startTime")String beginCreateTime,
							@Param("endTime")String endCreateTime,
							@Param("username") String username);


	Integer getBusinessNums(@Param("startTime")String beginCreateTime,
							@Param("endTime")String endCreateTime,
							@Param("username")String username);

	Integer getCluesNums(@Param("startTime")String beginCreateTime,
						 @Param("endTime") String endCreateTime,
						 @Param("username")String username);
	//龙虎榜🐉
	List<BusinessChangeStatisticsVo> getbusinchange(@Param("startTime")String beginCreateTime,@Param("endTime") String endCreateTime);


	List<BusinessChangeStatisticsVo> getsalesStatisticc(@Param("startTime")String beginCreateTime, @Param("endTime")String endCreateTime);
}
